package com.tourManagement.service;

import com.tourManagement.entity.User;

import java.sql.SQLException;
import java.util.List;

/**
 * Author:grass
 * Date:2022/10/16 0016
 */
public interface UserService {
    public List<User> select() throws SQLException;//查询所有用户
    public User selectByKey(User user) throws SQLException;//通过关键字查询用户
    public int update(User user) throws SQLException;//更新用户信息
    public int insert(User user) throws SQLException;//添加用户
    public int delete(User user) throws SQLException;//删除（注销）用户
}
